package com.yami.shop.admin.task;

import com.yami.shop.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class jieSuo {

    @Autowired
    private UserMapper userMapper;

    //5秒一次
    public void jieSuo(){

        userMapper.deitJieSuoStatus();//检查解锁过期状态，并更新

        userMapper.vipStageTime();//如果VIP过期则把VIP状态改为0

        userMapper.invGiftTime();//邀请时间过期以后把剩余邀请次数改为0

        userMapper.invPleTime();//邀请人首充赠送次数过期后归零
    }

}
